'''
Created on 14-Jul-2009

@author: dexen
'''

import time
import threading

class A(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)
        self.cnt = 0
        self.name = "HAHA"
        self.setDaemon(True)
        
    def run(self):
        while True:
            self.cnt += 2
            print self.cnt 
            time.sleep(5)
            
    
    def inc(self):
        self.cnt += 5
        print self.cnt        


def main():
    t = A()
    t.start()
    while True:
        t.inc()
        time.sleep(7)

if __name__ == "__main__":
    main()